﻿using System;
using UDS.Components;
using UDS.Entity;

namespace UDS.Web.UI.Controls
{
    public class FlowRuleDropDownList : EnumDropDownList
    {
        protected override Type EnumType
        {
            get { return typeof(FlowRule); }
        }

        protected override int DefaultEnumValue
        {
            get { return (int)FlowRule.Project; }
        }

        /// <summary>
        /// Gets or sets the selected rule.
        /// </summary>
        public FlowRule SelectedRule
        {
            get { return (FlowRule)SelectedEnumValue; }
            set { SelectedEnumValue = (int)value; }
        }
    }
}